let { projectRootPath } = require("../../../util/index");
let { getNewApp } = require(`${projectRootPath}/app/index.js`);
let { verifyToken } = require(`${projectRootPath}/util/jwt/index.js`);
let {
  uploadOwner,
  createOwner,
  getOwnerByPagination,
  editOwnerByUuid,
  removeOwnerByUuid,
  getOwnerByAll,
} = require(`${projectRootPath}/service/owner/index.js`);
let app = getNewApp();
let { question } = require(`${projectRootPath}/config/index.js`);
// 获取问题配置
app.post("/get/question", async (req, res) => {
  try {
    res.send({ data: question, code: 20000 });
  } catch (error) {
    res.send({ data: {}, message: error.message, code: 20001 });
  }
});

module.exports = app;
